home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Devices and Hardware / SCSI / SCSI Driver Example / UnitNtryCnt.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  474 b   |  22 lines  |  [TEXT/MPS ]

  1. /*
  2.  * UnitNtryCnt is not defined in the Universal Headers.  This is a bug.
  3.  * We define it in our own include file, so that when the Universal
  4.  * Headers are corrected, we can remove this include file and everything
  5.  * will compile correctly.
  6.  *
  7.  * 940522    BL°B    Creation
  8.  */
  9.  
  10. #define    UnitNtryCnt    0x01D2
  11.  
  12. short    LMGetUnitEntryCount (void)
  13. {
  14.     return (*(short *)UnitNtryCnt);
  15. }
  16.  
  17. void    LMSetUnitEntryCount (short newUnitEntryCount)
  18. {
  19.     *(short *)UnitNtryCnt = newUnitEntryCount;
  20. }
  21.  
  22.